<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RailUnit</title>
    <link rel="stylesheet" href="./RailUnit.umd.css">
</head>

<body>
    <canvas id="my" height="500" width="500"></canvas>
    <div id="myToolbar" style="margin: 0 atuo"></div>
</body>

<script src="./RailUnit.umd.js"></script>
<script>
    const bimViewer = new MyViewer({
        canvasElement: document.getElementById('my'),
        keyboardEventsElement: document.getElementById('id'),
        toolbarElement: document.getElementById('myToolbar'), // Toolbar
    })
    bimViewer.loadModel('./jianzhu.xkt', 'my', () => {
        bimViewer.setBackgroundColor([255, 255, 255])
        console.log('模型加载完成');
    })
</script>

</html>